package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 配送明细
 * @TableName scm_distribution_item
 */
@TableName(value ="scm_distribution_item")
@Data
public class ScmDistributionItem implements Serializable {
    /**
     * 配送明细ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 配送ID
     */
    private Integer disId;

    /**
     * 库存批次
     */
    private String batch;

    /**
     * 物料ID
     */
    private Integer materialId;

    /**
     * 配送数量
     */
    private BigDecimal itemNum;

    /**
     * 源单主键
     */
    @NotNull(message = "源单id（sourceId）不能为空")
    private Integer sourceId;

    /**
     * 源单code
     */
    @NotNull(message = "源单编码（sourceCode）不能为空")
    private String sourceCode;

    /**
     * 源单类型
     */
    private Integer sourceType;

    /**
     * 销售单价
     */
    private BigDecimal saleUnitPrice;

    /**
     * 销售总价
     */
    private BigDecimal totalPrice;

    /**
     * 备注
     */
    private String remark;

    /**
     * 辅助单位
     */
    private Integer assistUom;

    /**
     * 换算系数
     */
    private BigDecimal convCoefficient;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}